package com.wzdigit.wms.basic.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 单据生成标识
 * @author Administrator
 *
 */
public enum DocCreateFlagEnum implements BaseEnum {
	NO(0, "否", "DocCreateFlag"), 
	YES(1, "是", "DocCreateFlag");

	public int code;
	public String enumName;
	public String description;

	DocCreateFlagEnum(int code, String enumName, String description) {
		this.code = code;
		this.description = description;
		this.enumName = enumName;
	}
	
	public int getCode() {
		return code;
	}
	public String getEnumName() {
		return enumName;
	}
	public String getDescription() {
		return description;
	}
	
	public static Map<Integer, String> getEnumByDescription() {
		Map<Integer, String> enumMap = new HashMap<>();
		DocCreateFlagEnum[] values = DocCreateFlagEnum.values();
		for (DocCreateFlagEnum value : values) {
			enumMap.put(value.getCode(), value.getEnumName());
		}
		return enumMap;
	}
}
